list-[id].vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation></HomePageNavigation>
  7. <!-- 二级标题-->
  8. <!--<div class="sannongzhichuang" v-if="parent_name != ''">
  9. <div class="inner">
  10. <h2>
  11. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  12. <em class="iconfont icon-xingzhuang-zhijiaosanjiaoxing-copy"></em>
  13. </h2>
  14. <p class="introduction">
  15. <strong>频道介绍</strong>
  16. <div v-for="(item, index) in secondNav" :key="index">
  17. <span v-if="index <= 7">
  18. <NuxtLink :to="{ path: `/${item.aLIas_pinyin}/list-1.html`}">{{ item.alias }}</NuxtLink>
  19. </span>
  20. <b v-else></b>
  21. </div>
  22. </p>
  23. </div>
  24. </div>-->
  25. <!-- 面包屑导航 -->
  26. <div class="breadcrumb-box">
  27. <div class="inner">
  28. <span class="location">当前位置:</span>
  29. <el-breadcrumb :separator-icon="ArrowRight">
  30. <el-breadcrumb-item>
  31. <NuxtLink to="/">首页</NuxtLink>
  32. </el-breadcrumb-item>
  33. <el-breadcrumb-item v-if="parent_name != ''">
  34. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  35. </el-breadcrumb-item>
  36. <el-breadcrumb-item>{{ name }}</el-breadcrumb-item>
  37. </el-breadcrumb>
  38. </div>
  39. </div>
  40. <!-- 资讯列表 -->
  41. <div class="newsList">
  42. <div class="listBox">
  43. <div class="listBoxLeft">
  44. <div class="list_left_con">
  45. <div class="conitems " v-for="(per_obj, per_index) in 11">
  46. <div class="left_img" v-if="per_index % 2 == 0">
  47. <NuxtLink to="/">
  48. <img src="http://img.fazdyzx.org.cn/202601/2786d0a471c0ad8.png" data-isloaded="1">
  49. </NuxtLink>
  50. </div>
  51. <div class="right_text2">
  52. <NuxtLink to="/">
  53. <span>省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会</span>
  54. </NuxtLink>
  55. <NuxtLink to="/">
  56. <p>1月12日,省法院召开党组(扩大)会,传达学习习近平总书记对做好“三农”工作作出的重要指示和中央农村工作会议精神,习近平总书记在中共中央政治局民主生活会上的重要讲话精神和会议精神省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组(扩大)会省法院召开党组
  57. </p>
  58. </NuxtLink>
  59. </div>
  60. </div>
  61. </div>
  62. <!-- 分页器 -->
  63. <div class="pagination" v-if="total > 0">
  64. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  65. :page-size="pageSize" :current-page="pageNum" prev-text="上一页" next-text="下一页"
  66. @current-change="changePage" />
  67. <span class="total">共{{ total }}条</span>
  68. </div>
  69. </div>
  70. <div class="listBoxRight">
  71. <!-- <DetailHotNews></DetailHotNews> -->
  72. <DetailHotNews2></DetailHotNews2>
  73. </div>
  74. </div>
  75. </div>
  76. <!-- 页面底部 -->
  77. <HomeFoot></HomeFoot>
  78. </div>
  79. </template>
  80. <script setup>
  81. //1.页面必备依赖 start ---------------------------------------->
  82. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  83. import { ArrowRight } from '@element-plus/icons-vue'
  84. import { ref, onMounted } from 'vue';
  85. //当前列表名称
  86. const name = ref('')
  87. const { $webUrl, $CwebUrl, $BwebUrl } = useNuxtApp()
  88. //格式化跳转路径
  89. const getLinkPathDetail = (item) => {
  90. if (item.islink == 1) {
  91. return `${item.linkurl}`;
  92. } else {
  93. //return `/${item.aLIas_pinyin}/${item.id}`;
  94. //return `/newsDetail/${item.id}`
  95. return `/${item.pinyin}/${item.id}.html`;
  96. }
  97. }
  98. //1.页面必备依赖 end ---------------------------------------->
  99. //1.获得路由id start ---------------------------------------->
  100. const route = useRoute();
  101. let articleId = 0;//路由id
  102. let pageNum = ref(2);
  103. let total = ref(1);
  104. let pageSize = ref(10);
  105. //获得当前的完整路径
  106. const fullPath = route.path;
  107. //拆分,取出来中间这一段,然后提取数字部分
  108. const segments = fullPath.split('/');
  109. const targetSegment = segments[1];
  110. //const numberPart = targetSegment.match(/\d+$/)?.[0];
  111. //let routeId = 20 //排除路径错误可以打开这个
  112. //通过导航路径反向查询导航id
  113. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  114. method: 'GET',
  115. query: {
  116. 'pinyin': targetSegment,
  117. },
  118. });
  119. if (getRouteId.code == 200) {
  120. articleId = getRouteId.data.category_id
  121. } else {
  122. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  123. console.log("错误位置:通过url路径查询导航池id")
  124. console.log("后端错误反馈:", getRouteId.message)
  125. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  126. }
  127. //获得html前的数字
  128. // const pageUrl = segments[2];
  129. // const pageNumber = pageUrl.split('.')[0];
  130. // console.log("当前URL中的页码:")
  131. // console.log(pageNumber)//2
  132. // pageNum.value = parseInt(pageNumber);
  133. pageNum.value = parseInt(route.params.id);
  134. //1.获得路由id end ---------------------------------------->
  135. //2.页面数据 start ---------------------------------------->
  136. //2.2新闻列表
  137. const newsList = ref([]);
  138. let newslists = async () => {
  139. const listData = await requestDataPromise('/web/getWebsiteArticleList', {
  140. method: 'GET',
  141. query: {
  142. 'page': pageNum.value,
  143. 'pageSize': pageSize.value,
  144. 'catid': articleId
  145. },
  146. });
  147. if (listData.code == 200) {
  148. newsList.value = listData.data.rows;
  149. total.value = listData.data.count;
  150. } else {
  151. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  152. // console.log("错误位置:获取新闻列表")
  153. // console.log("后端错误反馈:", listData.message)
  154. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  155. }
  156. }
  157. //获得列表
  158. newslists();
  159. //分页事件
  160. let changePage = (value) => {
  161. console.log("当前页码", value);
  162. navigateTo(`/${targetSegment}/list-${value}.html`)
  163. }
  164. //2.3获得页面名称
  165. let getPageName = async () => {
  166. const pageName = await requestDataPromise('/web/getOneWebsiteCategory', {
  167. method: 'GET',
  168. query: {
  169. 'catid': articleId
  170. },
  171. });
  172. if (pageName.code == 200) {
  173. name.value = pageName.data.alias
  174. } else {
  175. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  176. // console.log("错误位置:设置页面标题")
  177. // console.log("后端错误反馈:", pageName.message)
  178. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  179. }
  180. }
  181. //获得列表
  182. getPageName();
  183. //2.页面数据 end ---------------------------------------->
  184. //3.二级栏目 start ---------------------------------------->
  185. //3.1通过id获取父栏目
  186. const parent_name = ref([]);
  187. const parent_id = ref([]);
  188. const parent_pinyin = ref("");
  189. let getParentNav = async () => {
  190. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  191. method: 'GET',
  192. query: {
  193. 'catid': articleId
  194. },
  195. });
  196. if (listData.code == 200) {
  197. console.log(111999)
  198. console.log(listData.data);
  199. parent_name.value = listData.data.parent_name;
  200. parent_id.value = listData.data.parent_id;
  201. parent_pinyin.value = listData.data.parent_pinyin;
  202. } else {
  203. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  204. // console.log("错误位置:获取新闻列表")
  205. // console.log("后端错误反馈:", listData.message)
  206. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  207. }
  208. getSecondNav();
  209. }
  210. //获得列表
  211. getParentNav();
  212. // 3.2获取二级栏目
  213. const secondNav = ref([]);
  214. let getSecondNav = async () => {
  215. const listData = await requestDataPromise('/web/getWebsiteModelCategory', {
  216. method: 'GET',
  217. query: {
  218. 'placeid': 1,
  219. 'pid': parent_id.value,
  220. 'num': 8,
  221. },
  222. });
  223. console.log('listData', listData);
  224. if (listData.code == 200) {
  225. secondNav.value = listData.data
  226. } else {
  227. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  228. console.log("错误位置:获取新闻列表")
  229. console.log("后端错误反馈:", listData.message)
  230. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  231. }
  232. }
  233. //3.二级栏目 end ---------------------------------------->
  234. //4.设置seo信息 start---------------------------------------->
  235. //4.1 设置seo信息
  236. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  237. method: 'GET',
  238. query: {
  239. 'catid': articleId
  240. },
  241. });
  242. if (setData.code == 200) {
  243. let seoTitle = setData.data.seo_title;
  244. let seoDescription = setData.data.seo_description;
  245. let seoKeywords = setData.data.seo_keywords;
  246. let seoSuffix = setData.data.suffix;
  247. let seoName = setData.data.website_name;
  248. useSeoMeta({
  249. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  250. meta: [
  251. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  252. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  253. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no', tagPriority: 10 }
  254. ]
  255. });
  256. } else {
  257. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  258. // console.log("错误位置:设置列表页面SEO数据")
  259. // console.log("后端错误反馈:", setData.message)
  260. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  261. }
  262. //4.设置seo信息 end---------------------------------------->
  263. //5.广告 start---------------------------------------->
  264. let adImg1 = ref({});
  265. let adImg2 = ref({});
  266. onMounted(async () => {
  267. //从客户端获取行政职能部门 加快打开速度
  268. const { $webUrl, $CwebUrl } = useNuxtApp();
  269. //广告1
  270. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0001`
  271. const responseAd1 = await fetch(url, {
  272. headers: {
  273. 'Content-Type': 'application/json',
  274. 'Userurl': $CwebUrl,
  275. 'Origin': $CwebUrl
  276. }
  277. });
  278. const resultAd1 = await responseAd1.json();
  279. adImg1.value = resultAd1.data[0];
  280. //广告2
  281. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_list_0002`
  282. const responseAd2 = await fetch(url2, {
  283. headers: {
  284. 'Content-Type': 'application/json',
  285. 'Userurl': $CwebUrl,
  286. 'Origin': $CwebUrl
  287. }
  288. });
  289. const resultAd2 = await responseAd2.json();
  290. adImg2.value = resultAd2.data[0];
  291. })
  292. //5.广告 end---------------------------------------->
  293. </script>
  294. <style lang="less" scoped>
  295. // @import url('@/assets/css/list/pc.less');
  296. // @import url('@/assets/css/list/yd.less');
  297. //面包屑
  298. .breadcrumb-box {
  299. width: 1400PX;
  300. margin: 0 auto;
  301. .inner {
  302. width: 100%;
  303. height: 22PX;
  304. margin-top: 20PX;
  305. margin-bottom: 20PX;
  306. font-family: Microsoft YaHei, Microsoft YaHei;
  307. font-weight: 400;
  308. font-size: 20PX;
  309. color: #666666;
  310. line-height: 23PX;
  311. text-align: left;
  312. font-style: normal;
  313. text-transform: none;
  314. display: flex;
  315. align-items: center;
  316. border-bottom: 1PX dashed #ccc;
  317. margin-bottom: 10PX;
  318. padding: 20PX 20PX 20PX 0;
  319. box-sizing: border-box;
  320. a {
  321. font-size: 16PX;
  322. color: #000;
  323. line-height: 20PX;
  324. }
  325. span {
  326. font-size: 16PX;
  327. color: #000;
  328. line-height: 20PX;
  329. &.location {
  330. line-height: 20PX;
  331. }
  332. }
  333. }
  334. }
  335. //资讯列表
  336. .newsList {
  337. width: 1400px;
  338. margin: 0 auto;
  339. .listBox {
  340. display: flex;
  341. align-items: flex-start;
  342. justify-content: space-between;
  343. .listBoxLeft {
  344. width: 1030px;
  345. .list {
  346. >li {
  347. width: 100%;
  348. height: auto;
  349. overflow: hidden;
  350. border-bottom: 1px dashed #ccc;
  351. margin-top: 30px;
  352. padding-bottom: 30px;
  353. a {
  354. color: #337ab7;
  355. }
  356. p {
  357. a {
  358. width: 100%;
  359. height: 72px;
  360. line-height: 24px;
  361. overflow: hidden;
  362. font-size: 14px;
  363. color: #666;
  364. font-weight: normal;
  365. }
  366. }
  367. }
  368. }
  369. }
  370. .listBoxRight {
  371. width: 315px;
  372. overflow: hidden;
  373. }
  374. }
  375. }
  376. //分页
  377. .pagination {
  378. height: 34px;
  379. display: flex;
  380. justify-content: center;
  381. margin: 0;
  382. width: 100%;
  383. overflow: hidden;
  384. margin: 20px 0;
  385. padding: 20px 0;
  386. // 鼠标移入后字体颜色
  387. .el-pagination::v-deep :hover {
  388. color: #139609;
  389. }
  390. .el-pagination.is-background::v-deep .btn-next,
  391. .el-pagination.is-background::v-deep .btn-prev {
  392. width: 70px;
  393. height: 34px;
  394. margin: 0px 10px;
  395. border-radius: 4px;
  396. }
  397. .el-pagination.is-background::v-deep .el-pager li {
  398. margin: 0px 10px;
  399. width: 38px;
  400. height: 34px;
  401. border-radius: 4px;
  402. }
  403. .el-pagination.is-background::v-deep .btn-next.is-active,
  404. .el-pagination.is-background::v-deep .btn-prev.is-active,
  405. .el-pagination.is-background::v-deep .el-pager li.is-active {
  406. background-color: #337ab7;
  407. color: #fff;
  408. }
  409. .total {
  410. display: block;
  411. height: 34px;
  412. line-height: 34px;
  413. font-size: 18px;
  414. margin-left: 20px;
  415. }
  416. }
  417. .breadcrumb-box {
  418. width: 1400PX;
  419. margin: 0px auto 0px;
  420. }
  421. .el-breadcrumb {
  422. height: 22PX;
  423. line-height: 22PX;
  424. }
  425. .breadcrumb-box .inner span.location {
  426. font-size: 16PX;
  427. ;
  428. height: 22PX;
  429. ;
  430. line-height: 22PX;
  431. font-weight: normal;
  432. }
  433. .breadcrumb-box .inner a {
  434. font-size: 16PX;
  435. ;
  436. height: 22PX;
  437. line-height: 22PX;
  438. display: inline-block;
  439. font-weight: normal;
  440. }
  441. .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner {
  442. font-size: 16PX;
  443. ;
  444. height: 22PX;
  445. line-height: 22PX;
  446. font-weight: normal;
  447. }
  448. .breadcrumb-box:deep(.el-icon) {
  449. width: 16PX;
  450. height: 16PX;
  451. }
  452. .breadcrumb-box .inner span {
  453. font-size: 16PX;
  454. ;
  455. height: 22PX;
  456. line-height: 22PX;
  457. }
  458. .newsList {
  459. width: 1400PX;
  460. box-sizing: border-box;
  461. }
  462. .newsList .listBox {
  463. display: block;
  464. width: 100%;
  465. overflow: hidden;
  466. }
  467. .newsList .listBox .listBoxLeft {
  468. float: left;
  469. width: 64%;
  470. overflow: hidden;
  471. }
  472. .newsList .listBox .listBoxRight {
  473. float: right;
  474. width: 33%;
  475. overflow: hidden;
  476. }
  477. .newsList .listBox .listBoxLeft .list>li {
  478. display: block;
  479. margin-top: 22PX;
  480. padding-bottom: 22PX;
  481. }
  482. .li_img_box {
  483. float: left;
  484. width: 160PX;
  485. height: 110PX;
  486. margin-right: 11px;
  487. }
  488. .li_img_box * {
  489. display: block;
  490. width: 100%;
  491. height: 100%;
  492. }
  493. .li_right_box {}
  494. .li_h4_dot1 {
  495. height: 22PX;
  496. line-height: 22PX;
  497. font-size: 20PX;
  498. font-weight: bold;
  499. color: #333;
  500. margin-top: 8PX;
  501. display: block;
  502. word-break: keep-all;
  503. white-space: nowrap;
  504. overflow: hidden;
  505. text-overflow: ellipsis;
  506. }
  507. .li_dot3 {
  508. height: 72PX;
  509. line-height: 24PX;
  510. font-size: 14PX;
  511. color: #333;
  512. font-weight: normal;
  513. margin-top: 4px;
  514. overflow: hidden;
  515. display: -webkit-box !important;
  516. -webkit-box-orient: vertical;
  517. -webkit-line-clamp: 3;
  518. }
  519. .newsList .listBox .listBoxLeft .list>li a {
  520. display: block;
  521. width: 100%;
  522. height: auto;
  523. overflow: hidden;
  524. }
  525. .pagination {
  526. padding: 10px 0px;
  527. margin: 10px 0px;
  528. }
  529. //分页
  530. .pagination {
  531. height: 34PX;
  532. display: flex;
  533. justify-content: center;
  534. margin: 0;
  535. width: 100%;
  536. overflow: hidden;
  537. margin: 20PX 0;
  538. padding: 20PX 0;
  539. // 鼠标移入后字体颜色
  540. .el-pagination::v-deep :hover {
  541. color: #139609;
  542. }
  543. .el-pagination.is-background::v-deep .btn-next,
  544. .el-pagination.is-background::v-deep .btn-prev {
  545. width: 70PX;
  546. height: 34PX;
  547. margin: 0px 2PX;
  548. border-radius: 0PX;
  549. border: solid 1px #ddd;
  550. }
  551. .el-pagination.is-background::v-deep .el-pager li {
  552. margin: 0px 2PX;
  553. width: 38PX;
  554. height: 34PX;
  555. border-radius: 0PX;
  556. border: solid 1px #ddd;
  557. }
  558. .el-pagination.is-background::v-deep .btn-next.is-active,
  559. .el-pagination.is-background::v-deep .btn-prev.is-active,
  560. .el-pagination.is-background::v-deep .el-pager li.is-active {
  561. background-color: #337ab7;
  562. color: #fff;
  563. }
  564. .total {
  565. display: block;
  566. height: 34PX;
  567. line-height: 34PX;
  568. font-size: 18PX;
  569. margin-left: 20PX;
  570. }
  571. }
  572. .conitems {
  573. width: 100%;
  574. height: auto;
  575. overflow: hidden;
  576. padding: 21PX 0;
  577. border-bottom: 1PX solid #f2f2f2;
  578. }
  579. .left_img {
  580. width: 175PX;
  581. height: 92PX;
  582. overflow: hidden;
  583. float: left;
  584. margin-right: 11PX;
  585. }
  586. .left_img a img {
  587. display: block;
  588. width: 100%;
  589. height: 100%;
  590. }
  591. .right_text2 {
  592. overflow: hidden;
  593. }
  594. .right_text2 a span {
  595. display: block;
  596. width: 100%;
  597. line-height: 30PX;
  598. height: 30PX;
  599. overflow: hidden;
  600. font-size: 18PX;
  601. color: #000;
  602. font-weight: bold;
  603. display: block;
  604. word-break: keep-all;
  605. white-space: nowrap;
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. }
  609. .right_text2 a p {
  610. width: 100%;
  611. height: 40PX;
  612. line-height: 20PX;
  613. overflow: hidden;
  614. display: -webkit-box !important;
  615. -webkit-box-orient: vertical;
  616. -webkit-line-clamp: 2;
  617. overflow: hidden;
  618. font-size: 14PX;
  619. color: #7d7d7d;
  620. text-indent: 28PX;
  621. }
  622. @media screen and (min-width: 1401px) {
  623. //你的样式
  624. }
  625. @media screen and (max-width: 1400px) {
  626. .breadcrumb-box {
  627. width: 100%;
  628. margin: 0px auto 0px;
  629. box-sizing: border-box;
  630. padding: 0px 10px;
  631. }
  632. .newsList {
  633. width: 100%;
  634. box-sizing: border-box;
  635. padding: 0px 10px;
  636. margin: 0px auto 0px;
  637. }
  638. }
  639. @media screen and (min-width: 801px) and (max-width: 1400px) {
  640. //你的样式
  641. }
  642. @media screen and (max-width: 800px) {
  643. //你的样式
  644. .listBoxLeft {
  645. width: 100% !important;
  646. float: none !important;
  647. }
  648. .listBoxRight {
  649. width: 100% !important;
  650. float: none !important;
  651. }
  652. .el-pagination.is-background::v-deep .btn-next,
  653. .el-pagination.is-background::v-deep .btn-prev {
  654. width: 60PX !important;
  655. height: 34PX !important;
  656. margin: 0px 2PX !important;
  657. }
  658. .el-pagination.is-background::v-deep .el-pager li {
  659. margin: 0px 2PX !important;
  660. width: 34PX !important;
  661. height: 34PX !important;
  662. }
  663. .conitems {
  664. padding: 22px 0;
  665. }
  666. .left_img {
  667. width: 222px;
  668. height: 144px;
  669. margin-right: 11px;
  670. }
  671. .right_text2 {
  672. margin-top: 4px;
  673. }
  674. .right_text2 a span {
  675. line-height: 44px;
  676. height: 44px;
  677. font-size: 28px;
  678. }
  679. .right_text2 a p {
  680. height: 66px;
  681. line-height: 33px;
  682. margin-top: 8px;
  683. font-size: 24px;
  684. text-indent: 28px;
  685. }
  686. .breadcrumb-box :deep(.el-icon) {}
  687. .breadcrumb-box .inner span.location,
  688. .breadcrumb-box .inner span {
  689. font-size: 24px;
  690. }
  691. .breadcrumb-box .inner a {
  692. font-size: 24px;
  693. height: 55px;
  694. line-height: 55px;
  695. }
  696. .breadcrumb-box .phone_breadcrumb_text :deep(.el-breadcrumb__inner) {
  697. font-size: 24px;
  698. height: 55px;
  699. line-height: 55px;
  700. }
  701. }
  702. </style>